<template>
  <div id="app">
    <keep-alive>
      <router-view></router-view>
    </keep-alive>
    <mfooter></mfooter>
  </div>
</template>

<script>
import Mfooter from "../components/Footer/footer";
export default {
  components: {
    Mfooter
  },
  data() {
    return {
      user: "hello"
    };
  },
  sockets: {
    //不能改
    connect: function() {
      //与socket.io连接后回调
      console.log("socket connected");
    },
    goods: function(value) {
      console.log(value); //监听login(后端向前端emit  login的回调)
    }
  },
  created() {
    // this.$socket.emit("start", this.user);
  }
};
</script>


<style lang="less">
</style>
